package com.zzlzd.drp.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component
@Slf4j
public class GiftTask {

	/*@Scheduled(fixedRate = 6*60*60*1000)
	//@Scheduled(fixedRate = 15*1000)
	public void editActivityState() throws IOException {
		System.out.println("查询到期活动");
		List<ActivityDto> list = activityRepository.findEndTime();
		for (ActivityDto activityDto :list){
			activityDto.setState(1);
			activityRepository.save(activityDto);
			System.out.println(activityDto.getActivityName()+":该活动已到期！");
		}
	}*/

}
